package edu.gdkm.abstractdemo;

public class Circular_cone extends Three_dimension {
    public Circular_cone(double r, double h) {
        super(r, h);
    }

    @Override
    public double superficial_area() {
        return Math.PI * r * (r + Math.sqrt(Math.pow(r, 2) + Math.pow(h, 2))) + Math.PI * r * h;

    }

    @Override
    public double volume() {
        return Math.PI * Math.pow(r, 2) * h / 3;

    }
}
